//package com.amumu.drama.admin.modules.invitation.controller;
//
//import com.amumu.drama.admin.dto.InvitationDTO;
//import com.amumu.drama.admin.modules.bak.service.SmsInvitationService;
//import com.amumu.drama.common.api.CommonPage;
//import com.amumu.drama.common.api.CommonResult;
//import com.amumu.drama.common.modules.invitation.dto.req.InvitationLogQuery;
//import com.amumu.drama.common.modules.invitation.dto.resp.MemberInvitationLogListResp;
//import com.amumu.drama.common.modules.invitation.service.InvitationLogService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@Api(tags = "优惠码")
//@RequestMapping("/v1/admin/invitation")
//@RestController
//public class SmsInvitationController {
//
//    @Autowired
//    private SmsInvitationService smsInvitationService;
//
//    @Autowired
//    private InvitationLogService invitationLogService;
//
//    @RequestMapping(value = "/invitation/search", method = RequestMethod.GET)
//    @ResponseBody
//    public CommonResult<CommonPage<InvitationDTO>> search(@RequestParam(required = false) String invitationCode,
//                                                          @RequestParam(required = false) String phoneNum,
//                                                          @RequestParam(required = false, defaultValue = "0") Integer pageNum,
//                                                          @RequestParam(required = false, defaultValue = "5") Integer pageSize) {
//        List<InvitationDTO> memberList = smsInvitationService.search(invitationCode, phoneNum, pageNum, pageSize);
//        return CommonResult.success(CommonPage.restPage(memberList));
//    }
//
//    @ApiOperation("查询用户邀请记录")
//    @PostMapping("/queryInvitationLog")
//    public CommonResult<CommonPage<MemberInvitationLogListResp>> queryInvitationLog(@RequestBody @Validated InvitationLogQuery request) {
//        return CommonResult.success(invitationLogService.queryInvitationLog(request));
//    }
//}
